using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerManager : MonoBehaviour
{
    public static PlayerManager instance;   //���ڴ���ʵ������Ҷ���ı���
    public Player player;

    public int EXP;

    public System.Action onEXPChange;

    private void Awake()
    {
        if (instance != null)       //����Ѿ�����ʵ����������������ǰ���󣬲�����ʵ��������
        {
            Destroy(instance.gameObject);
            instance = this;
        }
        else instance = this;
    }
}
